'use strict';

function calculate_elements_sum(collection) {
  function getsum(total,num){
    return total+num;
  }
  let result=collection.reduce(getsum);
  return result;
}

module.exports = calculate_elements_sum;

